home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 23 / Amiga Format AFCD23 (Feb 1998, Issue 107).iso / -seriously_amiga- / shareware / graphics / povray3 / povray3_060 / include / stars.inc < prev    next >
Text File  |  1997-12-12  |  5KB  |  149 lines

  1. /*
  2. Here are some updated/additional Starfield textures which you can include 
  3. in distribution with POVRAY 3.0.  These textures use some of the new 
  4. features in POVRAY 3.0.  The starfields become more "dense" as you progress 
  5. from Starfield1 to Starfield6 and add a little color since all stars are not 
  6. white but light shades of white, blue, red, and yellow.
  7.  
  8. Respectfully;
  9.  
  10. Jeff Burton
  11. jburton@apex.net
  12. http://www.geocities.com/SoHo/2365
  13. */
  14.  
  15.  
  16. #declare Starfield1 =
  17. texture {
  18.     pigment {
  19.         granite
  20.         color_map {
  21.             [ 0.000  0.270 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  22.             [ 0.270  0.280 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
  23.             [ 0.280  0.470 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  24.             [ 0.470  0.480 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
  25.             [ 0.480  0.680 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  26.             [ 0.680  0.690 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
  27.             [ 0.690  0.880 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  28.             [ 0.880  0.890 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
  29.             [ 0.890  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  30.         }
  31.     turbulence 1
  32.     sine_wave
  33.     scale .5
  34.     }
  35.     finish { diffuse 0 ambient 1 }
  36. }
  37.  
  38. #declare Starfield2 =
  39. texture {
  40.     pigment {
  41.         granite
  42.         color_map {
  43.             [ 0.000  0.270 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  44.             [ 0.270  0.285 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
  45.             [ 0.285  0.470 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  46.             [ 0.470  0.485 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
  47.             [ 0.485  0.680 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  48.             [ 0.680  0.695 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
  49.             [ 0.695  0.880 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  50.             [ 0.880  0.895 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
  51.             [ 0.895  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  52.         }
  53.     turbulence 1
  54.     sine_wave
  55.     scale .5
  56.     }
  57.     finish { diffuse 0 ambient 1 }
  58. }
  59.  
  60. #declare Starfield3 =
  61. texture {
  62.     pigment {
  63.         granite
  64.         color_map {
  65.             [ 0.000  0.270 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  66.             [ 0.270  0.290 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
  67.             [ 0.290  0.470 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  68.             [ 0.470  0.490 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
  69.             [ 0.490  0.680 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  70.             [ 0.680  0.700 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
  71.             [ 0.700  0.880 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  72.             [ 0.880  0.900 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
  73.             [ 0.900  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  74.         }
  75.     turbulence 1
  76.     sine_wave
  77.     scale .5
  78.     }
  79.     finish { diffuse 0 ambient 1 }
  80. }
  81.  
  82. #declare Starfield4 =
  83. texture {
  84.     pigment {
  85.         granite
  86.         color_map {
  87.             [ 0.000  0.270 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  88.             [ 0.270  0.300 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
  89.             [ 0.300  0.470 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  90.             [ 0.470  0.500 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
  91.             [ 0.500  0.670 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  92.             [ 0.670  0.700 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
  93.             [ 0.700  0.870 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  94.             [ 0.870  0.900 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
  95.             [ 0.900  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  96.         }
  97.     turbulence 1
  98.     sine_wave
  99.     scale .5
  100.     }
  101.     finish { diffuse 0 ambient 1 }
  102. }
  103.  
  104. #declare Starfield5 =
  105. texture {
  106.     pigment {
  107.         granite
  108.         color_map {
  109.             [ 0.000  0.260 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  110.             [ 0.260  0.300 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
  111.             [ 0.300  0.460 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  112.             [ 0.460  0.500 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
  113.             [ 0.500  0.660 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  114.             [ 0.660  0.700 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
  115.             [ 0.700  0.860 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  116.             [ 0.860  0.900 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
  117.             [ 0.900  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  118.         }
  119.     turbulence 1
  120.     sine_wave
  121.     scale .5
  122.     }
  123.     finish { diffuse 0 ambient 1 }
  124. }
  125.  
  126. #declare Starfield6 =
  127. texture {
  128.     pigment {
  129.         granite
  130.         color_map {
  131.             [ 0.000  0.250 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  132.             [ 0.250  0.300 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
  133.             [ 0.300  0.450 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  134.             [ 0.450  0.500 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
  135.             [ 0.500  0.650 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  136.             [ 0.650  0.700 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
  137.             [ 0.700  0.850 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  138.             [ 0.850  0.900 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
  139.             [ 0.900  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  140.         }
  141.     turbulence 1
  142.     sine_wave
  143.     scale .5
  144.     }
  145.     finish { diffuse 0 ambient 1 }
  146. }
  147.  
  148.  
  149.